package com.shenhan.single;

/**
 * @Author shenhan
 * @Date: 2020/6/12 23:43
 * @Description:
 */
public class LazyMan {
    private LazyMan() {

    }

    private volatile static LazyMan lazyMan;

    public static LazyMan getInstance() {
        if (lazyMan == null) {
            synchronized (LazyMan.class) {
                if (lazyMan == null) {
                    lazyMan = new LazyMan();
                }
            }
        }
        return lazyMan;
    }
}
